package moa.learners.reservoir;

import moa.learners.reservoir.AbstractSlides;


/**
 * Saves the contents of the Reservoir at any given time
 *
 * @param <E> type of itemsets stored in the Reservoir
 */
public interface AbstractWriter<E> {

	/**
	 * Saves the contents of the reservoir in the appropriate subclass' destination
	 * 
	 * @param tanker Reservoir instance to dump
	 * @throws Exception
	 */
	void Write( AbstractSlides<E> tanker) throws Exception;

	/**
	 * Saves the contents of the reservoir in the appropriate subclass' destination
	 * 
	 * @param tanker Reservoir instance to dump
	 * @throws Exception
	 */
	void WriteSeq( AbstractSlides<E> tanker) throws Exception;
	
	
}
